package com.dd.cloud.user.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 能配置的科室列表, 用于落地部署
 * </p>
 *
 * @author czg
 * @since 2022-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(comment = "管理员能设置的科室表")
public class AdminSetDep implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true,isAutoIncrement = true)
    private Integer id;

    /**
     * 管理员id
     */
    @Column(comment = "管理员id")
    private Integer adminId;

    /**
     * 科室id
     */
    @Column(length = 10, comment = "科室id")
    private String keshiId;

    /**
     * 科室名称
     */
    @Column(length = 20, comment = "科室名称")
    private String keshiName;

    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 状态, 1有效 2过期-1删除
     */
    @Column(type = MySqlTypeConstant.TINYINT,comment = "状态, 1有效 2过期-1删除")
    private Integer status;


}
